package conf2.ui;

import java.awt.Font;

public class FontSet {

    public static Font getGamePiece() {
        return gamePiece;
    }

    public static Font getSelectionMsg() {
        return selectionMsg;
    }

    public static Font getCardAttackValue() {
        return cardAttackValue;
    }

    public static Font getCardCaption() {
        return cardCaption;
    }

    public static Font getMapCenteredMsg() {
        return mapCenteredMsg;
    }

    public static Font getPortraitLabel() {
        return portraitLabel;
    }

    public static Font getPortraitAttackValue() {
        return portraitAttackValue;
    }

    public static Font getActorviewerAttackValue() {
        return actorviewerAttackValue;
    }

    public static Font getActorviewerName() {
        return actorviewerName;
    }

    public static Font getActorviewerText() {
        return actorviewerText;
    }

    public static Font getMapSelectionMsg() {
        return mapSelectionMsg;
    }

    public static Font getCardpickerCaption() {
        return cardpickerCaption;
    }

    public static Font getRegionName() {
        return regionName;
    }

    public static Font getInfopanelText() {
        return infopanelText;
    }

    public static Font getBattleResultVS() {
        return battleResultVS;
    }

    public static Font getDraftCaption() {
        return draftCaption;
    }

    public static Font getDraftCharacterName() {
        return draftCharacterName;
    }

    private FontSet() {
    }


    public static void preload() {
        selectionMsg = new Font(Font.SANS_SERIF, Font.BOLD, 20);
        cardAttackValue = new Font(Font.SERIF, Font.BOLD, 36);
        cardCaption = new Font(Font.SERIF, Font.BOLD, 14);
        mapCenteredMsg = new Font(Font.SANS_SERIF, Font.BOLD, 48);

        portraitLabel = new Font(Font.SANS_SERIF, Font.BOLD, 12);
        portraitAttackValue = new Font(Font.SANS_SERIF, Font.BOLD, 24);

        Font f, f1, f2, f3;
        try {
            f = Font.createFont(Font.TRUETYPE_FONT,
                    FontSet.class.getResourceAsStream("/conf2/fonts/ALTEM___.TTF"));
            f1 = f.deriveFont(Font.BOLD, 18);
            f2 = f.deriveFont(Font.PLAIN, 84);
            f3 = f.deriveFont(Font.BOLD, 32);
        } catch (Exception ex) {
            f1 = new Font(Font.SERIF, Font.BOLD, 72);
            f2 = new Font(Font.SERIF, Font.BOLD, 24);
            f3 = new Font(Font.SERIF, Font.BOLD, 36);
//            Logger.getLogger(ActorViewer.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
        }
        cardpickerCaption = f1;
        actorviewerAttackValue = f2;
        draftCaption = f3;

        try {
            f = Font.createFont(Font.TRUETYPE_FONT,
                    FontSet.class.getResourceAsStream("/conf2/fonts/kelmscot.ttf"));
            f = f.deriveFont(Font.BOLD, 16);
        } catch (Exception ex) {
            f = new Font(Font.SERIF, Font.BOLD, 14);
//            Logger.getLogger(ActorViewer.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
        }
        regionName = f;

        try {
            f = Font.createFont(Font.TRUETYPE_FONT,
                    FontSet.class.getResourceAsStream("/conf2/fonts/anirb___.ttf"));
            f = f.deriveFont(Font.PLAIN, 18);
            f2 = f.deriveFont(Font.PLAIN, 14);
        } catch (Exception ex) {
            f = new Font(Font.SANS_SERIF, Font.BOLD, 18);
            f2  =new Font(Font.SANS_SERIF, Font.BOLD, 14);
//            Logger.getLogger(ActorViewer.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
        }
        actorviewerName = f;
        draftCharacterName = f2;

        actorviewerText = new Font(Font.SERIF, Font.BOLD, 14);

        mapSelectionMsg = new Font(Font.SANS_SERIF, Font.BOLD, 14);

        infopanelText = new Font(Font.SANS_SERIF, Font.BOLD, 12);

        gamePiece = new Font(Font.SANS_SERIF, Font.PLAIN, 10);

        try {
            f = Font.createFont(Font.TRUETYPE_FONT, FontSet.class.getResourceAsStream("/conf2/fonts/Dorcla__.ttf"));
            f = f.deriveFont(Font.BOLD, 48);
        } catch (Exception ex) {
            f = new Font(Font.SANS_SERIF, Font.BOLD, 16);
//            Logger.getLogger(BattleResultDialog.class.getName()).log(Level.SEVERE, null, ex);
        }
        battleResultVS = f;
    }
    private static  Font gamePiece;
    private static Font selectionMsg;
    private static Font cardAttackValue;
    private static Font cardCaption;
    private static Font mapCenteredMsg;
    private static  Font portraitLabel;
    private static  Font portraitAttackValue;
    private static  Font actorviewerAttackValue;
    private static  Font actorviewerName;
    private static  Font actorviewerText;
    private static  Font mapSelectionMsg;
    private static  Font cardpickerCaption;
    private static  Font regionName;
    private static  Font infopanelText;
    private static  Font battleResultVS;
    private static  Font draftCaption;
    private static  Font draftCharacterName;



}
